﻿/*----------------------------------------------------------------
* Title: ZMAssetFrameWork
*
* Description: TextPro ImagePro ButtonPro TextMesh Pro
* 
* Support Function: 高性能描边、本地多语言文本、图片、按钮双击模式、长按模式、文本顶点颜色渐变、双色渐变、三色渐变
* 
* Usage: 右键-TextPro-ImagePro-ButtonPro-TextMeshPro
* 
* Author: Steve
*
* Date: 2024.10.12
*
* Modify: 
--------------------------------------------------------------------*/
using UnityEngine;
 

namespace UIFrameWork.UGUIPro
{
    [System.Serializable]
    public class ButtonAudioExtend
    {
        [SerializeField]
        private bool m_IsUseClickAudio;
     

        public void OnPointerDown(Transform trans)
        {
          
        }
        public void OnPointerUp(ButtonProBase buttonProBase)
        {
            //buttonProBase.OnPointerClick();
        }
        public bool  OnButtonClick()
        {
            if (m_IsUseClickAudio)
            {
                //通过自己的音频管理类播放对应的按钮点击音效
                //MusicManager.Instance.PlaySoundByPath(SoundDefine.clickSoundPath);
                //ButtonProDemo.Instance.PlaySound();
                //AudioManager.Instance.PlayEFAudio(GameManager.Instance.GameConf.点击按钮);
                //AudioManager.Ins?.PlayBtnClick();
            }
            
            return true;
        }
    }
     
}